package com.microservice.skeleton.upms.constraints;

import java.util.List;

/**
 * @author: lijin
 * @date: 2018年11月07日
 */
public interface ConstraintResolver {

    /**
     * Resolves and returns the constraints for the given {@code property} on the given
     * {@code clazz}. If there are no constraints, an empty list is returned.
     *
     * @param property the property
     * @param clazz the class
     * @return the list of constraints, never {@code null}
     */
    List<Constraint> resolveForProperty(String property, Class<?> clazz);

}